<?php
class Application_Form_AddList extends Zend_Form
{
	public function init()
	{
		$this->setName('list');

		$id = new Zend_Form_Element_Hidden('id');
		$id->addFilter('Int');

		$name = new Zend_Form_Element_Text('name');
		$name->setLabel('Name')
		->setRequired(true);

		$ownerName = new Zend_Form_Element_Text('owner_name');
		$ownerName->setLabel('Owner Name')
		->setRequired(true);

		$ownerEmail = new Zend_Form_Element_Text('owner_email');
		$ownerEmail->setLabel("Owner Email")
		->setRequired(true);

		$replyEmail = new Zend_Form_Element_Text('reply_email');
		$replyEmail->setLabel("Reply Email")
		->setRequired(true);

		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')->setLabel('Submit');

		$this->addElements(array($name,$ownerName,$ownerEmail,$replyEmail, $submit));
	}


}